/**
 *  提供基本的函数，判断用户是否在线什么的。。。 
 */
function get_uid(){
	user = $("#user_identifier");
	return Number(user.attr("uid"));
}
function get_user_name(){
	user = $("#user_identifier");
	return user.attr("username");
}
function get_controller(){
	var url = window.location.href;
	var begin = url.indexOf("index.php/");
	//document.write(url);//27
	//document.write("<br>"+begin);
	var url_need = url.substring(begin+9,begin+19);
	//document.write("<br>"+url_need+"<br>");
	if(url_need.match("share"))
		return "share";
	else if(url_need.match("recall"))
		return "recall";
	else 
		return "site";
}